package com.alibaba.citrus.cr.price.ability.functions.factory.activity;

import com.alibaba.citrus.cr.price.ability.functions.entity.activity.ActivityTermGiftRelationEntity;
import com.alibaba.cz.base.tool.log.Log;
import com.epoch.app.crpricecenter.model.dto.ActivityGiftItemRelationSDO;

import java.util.List;

/**
 * @author hanguo
 * @date 2021/11/10
 * @Description 赠品实体工厂
 */
public class ActivityTermGiftRelationFactory {

    private static Log log = Log.getLogger(ActivityTermGiftRelationFactory.class);

    public static ActivityTermGiftRelationEntity create(String activityTermId, List<String> giftIds){
        ActivityGiftItemRelationSDO activityGiftItemRelationSDO = new ActivityGiftItemRelationSDO();
        activityGiftItemRelationSDO.setGiftIds(giftIds);
        activityGiftItemRelationSDO.setActivityTermId(activityTermId);
        return ActivityTermGiftRelationEntity.of(activityGiftItemRelationSDO);
    }

}
